import { authorizeRequest } from '../util/http'
const ROUTER = '/v1/detail'
export interface Detail {
    id: number
    title: string
    imageUrl: string
    desc: string
    public: boolean
    userID: number
    username: string
    nickname: string
    likeCount: number
    commentCount: number
    favoriteCount: number
    likeState:boolean
}
export interface DeletePictureDetailRequest {
    id: number
}
export const apiGetPictureDetail = async (params:DeletePictureDetailRequest) => {
    return (await authorizeRequest.get<Detail>(ROUTER + '/' + params.id)).data
}